export class ReUtil {
    /**
     * 取url参数
     * @param url
     * @param {string} key 字段
     * @returns string
     */


    /**
     * 取url参数
     * @param urlStr
     * @param {string} key 字段
     * @returns string
     */
    static getQueryString(urlStr: string, key: string): string | null {

        const url = new URL(urlStr);
        const paramsStr = url.search.slice(1)
        console.log(paramsStr)
        const params = new URLSearchParams(paramsStr)
        return    params.get(key)

    }


}